<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="jypath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>

	<head>
	<script type="text/javascript">
          var contextPath = '${jypath}';
          var permitBtn = '${permitBtn}';
          var projectId='${projectId}';
    </script>
    
		<meta charset="utf-8" />
		<title></title>
		<%@include file="../../../common/jsVersion.jsp" %>
		<link rel="stylesheet" href="${jypath}/static/css/system/bootstrap/bootstrap.min.css" />
		<script type="text/javascript" src="${jypath}/static/js/jquery/jquery-2.0.3.min.js"></script>
		<script src="${jypath}/static/js/My97DatePicker/WdatePicker.js"></script>
		<script src="${jypath}/static/plugins/layer/2.1/layer.js"></script>
		<script type="text/javascript" src="${jypath}/static/plugins/vue/vue.js"></script>
		<script src="${jypath}/static/plugins/laypage/laypage.js"></script>
		
	</head>

	<body>
		<div class="container-fluid" id="projectProcdefIndex">
			<div class="row ">
				<div class="panel panel-default">
					<div class="panel-heading">查询条件</div>
					<div class="panel-body">
						<div class="col-xs-6">
							<div class="form-horizontal">
								<div class="form-group">
									<label class="col-xs-2 control-label">处理结果:</label>
									<div class="col-xs-4">
										<select class="form-control" v-model="params.status" id="queryProjectId">
										    <option value="">全部</option>
										    <option value="1">成功</option>
											<option value="2">失败</option>
										</select>
									</div>
								</div>
								

								
                                 

							</div>
						</div>
						<!--<div class="col-xs-2" ></div>-->
						<div class="col-xs-6">
							<div class="form-horizontal">
								
								<div class="form-group">
									<label class="col-xs-2 control-label">时间:</label>
									<div class="col-xs-4">
										 <input  id="startTimeStart" type="text" class="form-control" readonly="readonly" onClick="WdatePicker()" >
									</div>
									<div class="col-xs-4">
										 <input  id="startTimeEnd" type="text" class="form-control" readonly="readonly" onClick="WdatePicker()">
									</div>
					           </div>
					           
					           	<div class="form-group">
									<label class="col-xs-2 control-label"></label>
									<div class="col-xs-2">
										<button v-if="permission.query" type="button" class="btn btn-primary" v-on:click="queryList">查询</button>
									</div>
									<div class="col-xs-2">
									     <button v-on:click="clearForm" type="button" class="btn btn-default">清空</button>
									</div>
								</div>
							</div>
						</div>
					</div>

					

				</div>
			</div>
			<div class="row">
			<div class="panel panel-default">
			<div class="panel-heading">数据列表</div>
					<div class="panel-body" style="padding:0">
						<table class="table table-striped table-bordered table-hover" style=" margin-bottom:0;border:none;">
									<thead>
										<th>请求方</th>
										<th>接口类型</th>
										<th>时间</th>
										<th>处理结果</th>
										<th>描述</th>
									</thead>
									<tbody>
									   <tr v-for="pp in ppList">
											<td><a href="#" v-on:click="showDetail(pp.requestParams)" >{{pp.direction | directionName}}</a></td>
											<td>{{pp.interfaceName}}</td>
											<td>{{pp.createTime | createTimeStr}}</td>
											<td>{{pp.status | statusName}}</td>
											<td>{{pp.returnResult}}</td>
										</tr>
										
									</tbody>
						</table>

					</div>
					</div>
			</div>
			<div class="row">
				<div class="col-xs-12" id="pagination">
				</div>
			</div>

		</div>
		<script type="text/javascript" src="${jypath}/static/js/system/log/pmo/list.js?v=${jsVersion}"></script>
	</body>
</html>